home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!not-for-mail
- From: rogersr@primenet.com (Randy Rogers)
- Newsgroups: comp.lang.c++
- Subject: Overloading ? and Template parameters ?
- Date: 2 Apr 1996 22:43:01 -0700
- Organization: Primenet
- Sender: root@primenet.com
- Message-ID: <4jt355$moq@nnrp1.news.primenet.com>
- Reply-To: rogersr@primenet.com
- X-Posted-By: ip21-211.phx.primenet.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- I have seen the error of my ways and am now repenting....converting to
- c++ from Ada.
-
- I have a problem...and no book so I hope there are C++ gurus out there
- to further enlighten me on some of the finer points of C++
-
- 1. I have an array of records. Each record is several words long. I
- recently entered some code to compare 2 records...ie are they =
- all of the sudden I noted that C++ wasnt going to do any type of
- record comparison....I used to do that sort of thing with Ada. How do
- I overload the = function to compare 2 records?
-
-
- 2. The next question I have concerns the template, class etc. I have
- a template constructed which is a queue. The queue has access
- functions get, put. What I want is a q function which may be
- instantiated to be of any length so I need to pass in a parameter to
- dimension the q how is this done in C++?
-
-
- If anyone has any helpful pointers or tips on these problems please
- email me I would certainly be grateful.
-
-
- tia
-
- randy rogers
-
-